package carassius.BLL.Events.Organism;

import carassius.DAL.OrganismRow;

/**
 *
 * @author siebz0r
 */
public class OrganismPropertyChangedEvent
{
	private OrganismRow _source;
	private OrganismProperty _property;
	private Object _oldValue, _newValue;
	
	public OrganismPropertyChangedEvent(OrganismRow source, OrganismProperty property, Object oldValue, Object newValue)
	{
		_source = source;
		_property = property;
		_oldValue = oldValue;
		_newValue = newValue;
	}

	public OrganismRow getSource()
	{
		return _source;
	}

	public OrganismProperty getProperty()
	{
		return _property;
	}

	public Object getOldValue()
	{
		return _oldValue;
	}

	public Object getNewValue()
	{
		return _newValue;
	}

	public enum OrganismProperty
	{
		AlternativeName,
		Description,
		Difficulty,
		MaxSize,
		Maxtemperature,
		MinTemperature,
		Picture,
		ScientificName
	}
}
